import request from '@/utils/request';

// 赠品列表
export const selectList = params => request({
    url: '/presented/selectList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品策略详情查询
export const presentedSelectDetail = params => request({
    url: '/presented/selectDetail',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品新增
export const presentedAdd = params => request({
    url: '/presented/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品详情
export const getUpdateDetail = params => request({
    url: '/presented/getUpdateDetail',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品修改
export const presentedUpdate = params => request({
    url: '/presented/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品状态修改
export const updateStatus = params => request({
    url: '/presented/updateStatus',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品删除
export const presentedDelete = params => request({
    url: '/presented/delete',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 赠品详情
export const selectDetail = params => request({
    url: '/select/get',
    method: 'GET',
    params
});
